﻿using Basic.FlowApplication.Interface;
using Basic.FlowRemoteModel.Application;
using Basic.FlowRemoteModel.Application.Model;
using WeDonekRpc.Client.Interface;

namespace Basic.FlowApplication.RpcEvent
{
    internal class BeginAuditEvent : IRpcApiService
    {
        private readonly IAuditService _Service;

        public BeginAuditEvent ( IAuditService service )
        {
            this._Service = service;
        }

        public NextStepResult GetNextStep ( GetNextStep obj )
        {
            return this._Service.GetNextStep(obj.Id);
        }
        public CreateAuditResult BeginAudit ( BeginAudit obj )
        {
            return this._Service.BeginAudit(obj.FlowArg, obj.User);
        }
    }
}
